﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HelloMinasan.Caching.CacheObjects;
using HelloMinasan.Domain;
using HelloMinasan.Configuration;
using HelloMinasan.UserDefinedType;

namespace HelloMinasan.Web.ViewModels
{
    public class UserSelectorModel
    {
        public UserSelectorModel()
        {
            ExcludePreselectedUserFromOutput = true;
            CurrentPage = 1;
            PageSize = GeneralSetting.MembersInCirclePageSizeList;
            TotalRecords = 0;
        }

        public string OkButtonText { get; set; }
        public string CancelButtonText { get; set; }
        public bool ExcludePreselectedUserFromOutput { get; set; }
        public int[] PreselectedUserIds { get; set; }
        public bool ShowCircleDropdown { get; set; }
        public bool ShowSelectAll { get; set; }
        public bool? MemberCircleOnly { get; set; }
        public IEnumerable<CircleSelectorModel> CircleSelectors { get; set; }
        public string TitleSelected { get; set; }

        public int CurrentPage { get; set; }
        public int PageSize { get; set; }
        public int TotalRecords { get; set; }

        public IEnumerable<UserBasicInfoModel> UsersPaging { get; set; }
        public string StringPreselectedUserIds { get; set; }
        public string ListCircle { get; set; }
        public string StringPreselectedUserIdsFromOutPut { get; set; }
    }

    public class CircleSelectorModel
    {
        public int CircleId { get; set; }
        public string CircleName { get; set; }
        public EnumCircleType CircleType { get; set; }
        public IEnumerable<UserBasicInfoModel> Users { get; set; }
    }
}